package com.ljwy.showinfo.okgoHelper;

import com.google.gson.Gson;

/**
 * Created by Sloop on 2018/8/20
 * Description: 后台code异常
 */
public class MyException extends IllegalStateException {

    private BaseResponse errorBean;

    public MyException(String s) {
        super(s);
        errorBean = new Gson().fromJson(s, BaseResponse.class);
    }

    public BaseResponse getErrorBean() {
        return errorBean;
    }
}